package com.zian.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
 @ApiModel( "修改密码")
public class UpdatePwdDTO {

     @ApiModelProperty( "旧密码")
    @NotBlank(message = "旧密码不能为空")
    @Length(min = 6, max = 20, message = "旧密码长度在6-20位")
    private String oldPassword;

     @ApiModelProperty( "新密码")
    @NotBlank(message = "新密码不能为空")
    @Length(min = 6, max = 20, message = "新密码长度在6-20位")
    private String newPassword;
}
